
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import { Button } from 'vant';
import Vant from 'vant'
import { Search, DropdownMenu, DropdownItem } from 'vant';
import App from './App.vue'
import router from './routers'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import 'vant/lib/button/style';
import './components/v-icon/iconfont.js'
import './components/v-icon/iconfont.css'
import './components/v_icon_2/iconfont.js'
import './components/v_icon_2/iconfont.css'
import { ElCheckbox } from 'element-plus'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'


const app = createApp(App)
app.use(router)
app.use(Button)
app.use(Vant)
app.use(Search, DropdownMenu, DropdownItem)
app.use(createPinia())
app.use(ElCheckbox)
app.use(ElementPlus);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.mount('#app')